package yl.hs.bmipfull.pojo.system;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

/**
 * 作用:  地磅设备信息表实体类<br/>
 * 创建时间: 2021年06月03日 11时37分20秒 <br/>
 *
 * @author 吴高丰
 */
@DBTable(disName = "地磅设备信息表", mapCode = "weighing_equipment")
public class WeighingEquipmentEntity extends BaseEntity {

    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 编号
     */
    @DBField(disName = "地磅设备信息表编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "")
    private String sn;
    /**
     * 设备名称
     */
    private String deviceName;
    /**
     * 设备名称拼音
     */
    private String deviceNamePY;
    /**
     * 设备端口号
     */
    private String portName;
    /**
     * 波特率
     */
    private int baudRate;
    /**
     * 奇偶校验位
     */
    private int parity;
    /**
     * 数据位数
     */
    private int dataBits;
    /**
     * 停止位数目
     */
    private int stopBits;
    /**
     * 输出类型
     */
    private int ioType;
    /**
     * 数据格式
     */
    private int dataType;
    /**
     * 称重单位
     */
    private int dataUnit;
    /**
     *
     */
    private int weighModel;
    /**
     * 起始位
     */
    private int startIndex;
    /**
     * 数据长度
     */
    private int dataLength;
    /**
     * 是否启用
     */
    private boolean enableMark;
    /**
     *
     */
    private boolean isReverse;
    /**
     * 备注
     */
    private String remark;
    /**
     * 磅房归属磅房
     */
    private String dBHouse;

    /**
     * 状态
     *
     * @param id
     */
    private short state;

    public boolean isEnableMark() {
        return enableMark;
    }

    public String getdBHouse() {
        return dBHouse;
    }

    public void setdBHouse(String dBHouse) {
        this.dBHouse = dBHouse;
    }

    public short getState() {
        return state;
    }

    public void setState(short state) {
        this.state = state;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getDeviceName() {
        return this.deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceNamePY() {
        return this.deviceNamePY;
    }

    public void setDeviceNamePY(String deviceNamePY) {
        this.deviceNamePY = deviceNamePY;
    }

    public String getPortName() {
        return this.portName;
    }

    public void setPortName(String portName) {
        this.portName = portName;
    }

    public int getBaudRate() {
        return this.baudRate;
    }

    public void setBaudRate(int baudRate) {
        this.baudRate = baudRate;
    }

    public int getParity() {
        return this.parity;
    }

    public void setParity(int parity) {
        this.parity = parity;
    }

    public int getDataBits() {
        return this.dataBits;
    }

    public void setDataBits(int dataBits) {
        this.dataBits = dataBits;
    }

    public int getStopBits() {
        return this.stopBits;
    }

    public void setStopBits(int stopBits) {
        this.stopBits = stopBits;
    }

    public int getIoType() {
        return this.ioType;
    }

    public void setIoType(int ioType) {
        this.ioType = ioType;
    }

    public int getDataType() {
        return this.dataType;
    }

    public void setDataType(int dataType) {
        this.dataType = dataType;
    }

    public int getDataUnit() {
        return this.dataUnit;
    }

    public void setDataUnit(int dataUnit) {
        this.dataUnit = dataUnit;
    }

    public int getWeighModel() {
        return this.weighModel;
    }

    public void setWeighModel(int weighModel) {
        this.weighModel = weighModel;
    }

    public int getStartIndex() {
        return this.startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public int getDataLength() {
        return dataLength;
    }

    public void setDataLength(int dataLength) {
        this.dataLength = dataLength;
    }

    public boolean getEnableMark() {
        return this.enableMark;
    }

    public void setEnableMark(boolean enableMark) {
        this.enableMark = enableMark;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDBHouse() {
        return this.dBHouse;
    }

    public void setDBHouse(String dBHouse) {
        this.dBHouse = dBHouse;
    }

    public boolean getisReverse() {
        return this.isReverse;
    }

    public void setisReverse(boolean isReverse) {
        this.isReverse = isReverse;
    }
}